package gui.threed;

import javax.media.j3d.Appearance;
import javax.media.j3d.Material;
import javax.vecmath.Color3f;

import com.sun.j3d.utils.geometry.Sphere;

/**
 * The 3D model of an agent
 * 
 * @author Johannes Kulick
 * @version 0.1
 * @licence GNU Lesser Genaral Public Licence
 */
public class AgentModel extends Sphere {
	public AgentModel(Color3f color) {
		// Set Radius
		super(LabyrinthModel.BLOCK_SIZE/1.5f);
		
		// set Color
		Appearance agentAppearance = new Appearance();
		Material agentMaterial = new Material();
		agentMaterial.setDiffuseColor(color);
		agentAppearance.setMaterial(agentMaterial);
		setAppearance(agentAppearance);
	}

}
